// 获取员工列表
import request from '@/utils/request'
export const userlist = params => {
  return request({
    url: '/user/list',
    method: 'get',
    params
  })
}
// 删除员工
export const userremove = data => {
  return request({
    url: '/user/remove',
    method: 'post',
    data
  })
}
// 编辑员工
export const userredit = data => {
  return request({
    url: '/user/edit',
    method: 'post',
    data
  })
}
// 后台创建用户
export const useradd = data => {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}
// 这里设置一个用户状态
export const userstatus = data => {
  return request({
    url: '/user/status',
    method: 'post',
    data
  })
}
